﻿using Platformer_Example.Controller.Map;
using Platformer_Example.Controller.Terrain;
using System;
using Transformable_Engine_v2.Engine.Graphics;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Platformer_Example.Content.Images.Environment
{
    public class SpritesheetDefaultFont : SpriteSheetInstance
    {
        private static SpriteSheetInstance _instance;
        public static void LoadContent()
        {
            _instance = new SpritesheetDefaultFont();
        }
        public new static Sprite GetSprite(Enum textureName)
        {
            return _instance.GetSprite(textureName);
        }
        public static SpriteSheetInstance GetInstance()
        {
            return _instance;
        }
        public static Sprite GetSprite(string textureName)
        {
            Alphabet value;
            return Enum.TryParse(textureName, false, out value) ? _instance.GetSprite(value) : null;
        }

        public override string SpriteSheetPath
        {
            get
            {
                return "Content/Images/Font/DefaultFont.png";
            }
        }

        public enum Alphabet
        {
            a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z,
            Num0, Num1, Num2, Num3, Num4, Num5, Num6, Num7, Num8, Num9, Unknown,
            ForwardSlash
        }

        protected override void LoadSprites()
        {
            AddEnumList<Alphabet>(Alphabet.a, Alphabet.ForwardSlash, new TE_Rectangle(0, 0, 1, 1.25f), 10);
        }


    }
}